package ex4.logic;
/**
 * 
 * @author Yuvik
 * represents a IceAgeSnake snake 
 */
public class IceAgeSnake extends Snake{


	public IceAgeSnake(int speed){

		this._length=5;
		this._score=0;
		this._speed=speed;
		this._fuzzy=false;
		this._snakeType=Configuration.ICEAGESNAKE;
		this._imageName="IceAgeSnake.png";
		this._SnakeTypeName="IceAgeSnake";

	}


	@Override
	public void eat(Food food) {
		food.accept(this);		
	}

	@Override
	public void visit(IceCream food) {
		this._length=this._length+5;
		this._score=this._score+50;		
	}

	@Override
	public void visit(Insect food) {
		this._length=this._length+1;
		this._score=this._score+5;		
	}

	@Override
	public void visit(Meat food) {
		this._length=this._length+1;
		this._score=this._score+10;		
	}

}
